Skip to content
On this page

opkg install gcc export CC=gcc export CXX=g++

. ./env.sh export GOROOT=/mnt/sda6/go-linux-amd64-bootstrap export GOPATH=/mnt/sda6/goproj export PATH=PATH:/mnt/sda6/golinuxamd64bootstrap/bin:PATH:/mnt/sda6/go-linux-amd64-bootstrap/bin:GOPATH/bin

错误

错误1

  1. 问题 /usr/bin/ld: cannot find -lpthread collect2: error: ld returned 1 exit status
  2. 解决办法 建立一个软连接 /usr/lib ln -s libpthread.so.0 libpthread.so